package com.ruoyi.system.service;

import com.ruoyi.common.core.domain.model.LoginUser;
import com.ruoyi.system.domain.vo.DyCustomerSumVo;
import com.ruoyi.system.domain.vo.DyCustomerVo;
import com.ruoyi.system.domain.bo.DyCustomerBo;
import com.ruoyi.common.core.page.TableDataInfo;
import com.ruoyi.common.core.domain.PageQuery;

import java.util.Collection;
import java.util.List;

/**
 * 客服Service接口
 *
 * @author ruoyi
 * @date 2024-06-20
 */
public interface IDyCustomerService {

    /**
     * 查询客服
     */
    DyCustomerVo queryById(Long id);

    /**
     * 查询客服列表
     */
    TableDataInfo<DyCustomerVo> queryPageList(DyCustomerBo bo, PageQuery pageQuery, LoginUser loginUser);

    /**
     * 查询客服列表
     */
    List<DyCustomerVo> queryList(DyCustomerBo bo);

    /**
     * 新增客服
     */
    Boolean insertByBo(DyCustomerBo bo);

    /**
     * 修改客服
     */
    Boolean updateByBo(DyCustomerBo bo);

    /**
     * 校验并批量删除客服信息
     */
    Boolean deleteWithValidByIds(Collection<Long> ids, Boolean isValid);

    /**
     * 数据统计
     */
    DyCustomerSumVo getSumCustomer(DyCustomerBo bo);
}
